//
//  AuctionDetail.m
//  HZAPP
//
//  Created by huazi on 15/7/24.
//  Copyright (c) 2015年 huazi. All rights reserved.
//

#import "AuctionDetail.h"

@implementation AuctionDetail
- (instancetype)initWithDic:(NSDictionary *)dic {
    self =[super init];
    if (self) {
        _auctionTitle =[NSString isEmpty:[dic objectForKey:@"auctionTitle"]]?@"":[dic objectForKey:@"auctionTitle"];
        _carColor =[NSString isEmpty:[dic objectForKey:@"carColor"]]?@"":[dic objectForKey:@"carColor"];
        _firstPic =[NSString isEmpty:[dic objectForKey:@"firstPic"]]?@"":[dic objectForKey:@"firstPic"];;
        _id =[NSString isEmpty:[NSString stringWithFormat:@"%@",[dic objectForKey:@"id"]]]?@"":[NSString stringWithFormat:@"%@",[dic objectForKey:@"id"]];
        _mileageCount =[NSString isEmpty:[NSString stringWithFormat:@"%@",[dic objectForKey:@"mileageCount"]]]?@"":[NSString stringWithFormat:@"%@",[dic objectForKey:@"mileageCount"]];
        _shelfCode =[NSString isEmpty:[NSString stringWithFormat:@"%@",[dic objectForKey:@"shelfCode"]]]?@"":[NSString stringWithFormat:@"%@",[dic objectForKey:@"shelfCode"]];
        _startDate =[NSString isEmpty:[NSString stringWithFormat:@"%@",[dic objectForKey:@"startDate"]]]?@"":[NSString stringWithFormat:@"%@",[dic objectForKey:@"startDate"]];
        _startPrice =[NSString isEmpty:[NSString stringWithFormat:@"%@",[dic objectForKey:@"startPrice"]]]?@"":[NSString stringWithFormat:@"%@",[dic objectForKey:@"startPrice"]];
        _state =[NSString isEmpty:[NSString stringWithFormat:@"%@",[dic objectForKey:@"state"]]]?@"":[NSString stringWithFormat:@"%@",[dic objectForKey:@"state"]];
        _vehiclePics =[dic objectForKey:@"vehiclePics"];
    }
    return self;
}
@end
